package com.karrysong.blog_springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.karrysong.blog_springboot.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName: TagMapper
 * @Author: KarrySong
 * @Date: 2022/8/4 9:36
 * @Description:
 */
@Mapper
@Component
public interface TagMapper extends BaseMapper<Tag> {

    List<Tag> findTagsByTagIds(List<Long> tagIds);

    List<Long> findHotsTagIds(int limit);

    List<Tag> findTagsByArticleId(Long id);

}
